package com.yehuo.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yehuo.app.dto.FindOrderDTO;
import com.yehuo.app.entity.Order;
import com.yehuo.app.vo.OrderListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface OrderMapper extends BaseMapper<Order> {

    /**
     * 条件查询订单列表
     * @param conditions
     * @return
     */
    List<Map<String, Object>> selectOrdersByConditions(@Param("condition") Map<String, Object> conditions);

    List<OrderListVO> selectByOrderList(@Param("page") Page<OrderListVO> page, @Param("findOrderDTO") FindOrderDTO findOrderDTO);
}
